package org.example.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/first")
public class FirstCotroller {
    /*@GetMapping
    public String a(HttpServletResponse response) {
        response.addHeader("Access-Control-Allow-Origin", "*");
        return "success";
    }*/
    @CrossOrigin
    @GetMapping
    public String a() {
        return "success";
    }
}
